/*
 * Copyright [yyyy] [name of copyright owner]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * You may obtain a copy of the License at

 * http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.flarebit.flarebarlib;

import ohos.agp.components.element.Element;

/**
 * TabEventObject
 *
 * @author Vaibhav Patel
 * @since 2019-06-20
 */
public class Flaretab {
    private Element mTabImage;
    private String mTabText;
    private String mTabColorString;
    private String mBadge;

    /**
     * Flaretab
     *
     * @param tabImage tabImage
     * @param tabText tabText
     * @param tabColorString tabColorString
     */
    public Flaretab(Element tabImage, String tabText, String tabColorString) {
        this.mTabImage = tabImage;
        this.mTabText = tabText;
        this.mTabColorString = tabColorString;
    }

    /**
     * Flaretab
     *
     * @param tabImage tabImage
     * @param tabText tabText
     * @param tabColorString tabColorString
     * @param badge badge
     */
    public Flaretab(Element tabImage, String tabText, String tabColorString, String badge) {
        this.mTabImage = tabImage;
        this.mTabText = tabText;
        this.mTabColorString = tabColorString;
        this.mBadge = badge;
    }

    /**
     * getTabImage
     *
     * @return mTabImage
     */
    public Element getTabImage() {
        return mTabImage;
    }

    /**
     * setTabImage
     *
     * @param tabImage tabImage
     */
    public void setTabImage(Element tabImage) {
        this.mTabImage = tabImage;
    }

    /**
     * getTabText
     *
     * @return mTabText
     */
    public String getTabText() {
        return mTabText;
    }

    /**
     * setTabText
     *
     * @param tabText tabText
     */
    public void setTabText(String tabText) {
        this.mTabText = tabText;
    }

    /**
     * getTabColorString
     *
     * @return mTabColorString
     */
    public String getTabColorString() {
        return mTabColorString;
    }

    /**
     * setTabColorString
     *
     * @param tabColorString tabColorString
     */
    public void setTabColorString(String tabColorString) {
        this.mTabColorString = tabColorString;
    }

    /**
     * getBadge
     *
     * @return mBadge
     */
    public String getBadge() {
        return mBadge;
    }

    /**
     * setBadge
     *
     * @param badge badge
     */
    public void setBadge(String badge) {
        this.mBadge = badge;
    }

    /**
     * isBadgeGiven
     *
     * @return is BadgeGiven
     */
    public boolean isBadgeGiven() {
        if (mBadge != null && mBadge.length() > 0) {
            return true;
        }
        return false;
    }
}
